﻿#region Regions

using System;

using FMWare.Core.Base;

#endregion

namespace FMWare.Core.Translations
{
	public class MediaSource : Item
	{
		#region Public Properties

		public String Name { get; set; }
		public Byte NameGender { get; set; }

		#endregion

		#region Internal Properties

		internal override string ExportData
		{
			get { return Global.CreateDelimitedString(UniqueId, Name); }
		}

		#endregion

		#region Internal Methods

		internal override void Read(BinaryReader reader)
		{
			UniqueId = reader.ReadInt32();
			Name = reader.ReadString();
			NameGender = reader.ReadByte();
		}

		internal override void Write(BinaryWriter writer)
		{
			writer.Write(UniqueId);
			writer.Write(Name);
			writer.Write(NameGender);
		}

		#endregion
	}
}